import request from '@/utils/request'
/**
 *
 * @param {*} data 登陆请求传的body
 * @returns
 */
export function reqLogin(data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}

export const reqGetUserInfo = () => request.post('/sys/profile')

export const reqGetUserDataIlById = (id) => request({
  url: `/sys/user/${id}`,
  method: 'get'
})

export function logout() {

}
